import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";

export default defineConfig({
    plugins: [uni()],
    server: {
        host: "localhost",
        port: 8899,
        proxy: {
            "/api": {
                target: "https://abc.com",
                changeOrigin: true,
                rewrite: (path) => path.replace(/^\/api/, "")
            }
        }
    }
});
